add Current Branch Log
Adds a chat log to the repository and clears the current branch messages.
Parameters
log
The chat log to be added.
fun addCurrentBranchLog(messageList: List<ChatMessage>, logType: ChatBranch, toBeCompleted: Date? = null)
Creates and adds a new chat log based on a list of messages. It makes a copy of the provided message list before storing it.
Parameters
message List
The list of messages to be stored in the log.
log Type
The type of chat branch associated with the log.
to Be Completed
(Optional) A date indicating when the chat log should be completed.